package com.leps.nq.bu.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leps.nq.bu.entity.BuPlc;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leps.nq.bu.vo.PlcQueryModel;
import com.leps.nq.bu.vo.PlcVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * plc表 Mapper 接口
 * </p>
 *
 * @author hex
 * @since 2022-05-22
 */
@Mapper
public interface BuPlcMapper extends BaseMapper<BuPlc> {

    int updateCustName(String newCustName, int custId);

    int updateAreaName(String areaName, int areaId);

    int updateStationName(String stationName, int stationId);

    Page<PlcVo> selectByQueryModel(@Param("page") Page<PlcVo> page, @Param("queryModel") PlcQueryModel queryModel);

    int updateRedundantField(BuPlc plc);
}
